jQuery(function($) {
	$.scrollbarWidth = (function() {
		var div1 = $('<div/>').css({
			position: 'ablolute',
			width: 100,
			top: -2000,
			left: -2000,
			margin: 0,
			border: '1px solid red',
			padding: 0,
			overflowY: 'scroll'
		});
		var div2 = $('<div/>').css({
			height: 100,
			margin: 0,
			border: 0,
			padding: 0
		});
		$('body').append(div1.append(div2));
		var width = div1.width() - div2.width();
		div1.remove();	
		return width;
	})();
});